﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HISModels.Entities;
namespace HISModels.ViewModel
{
    public class ViewDataAddress
    {
        public ViewDataAddress()
        {
            AddressId = 0;
            ZipCode = "";
            AddressDesc = "";
            PhoneNumber = "";
            Fax = "";
            AreaId = 0;
            AreaName = "";
            CityId = 0;
            CityName = "";
            ProvinceId = 0;
            ProvinceName = "";
            CountryId = 0;
            CountryName = "";
        }

        public int AddressId { get; set; }
       
        public string ZipCode { get; set; }
        public string AddressDesc { get; set; }
        public string PhoneNumber { get; set; }
        public string Fax { get; set; }

        public int AreaId { get; set; }
        public string AreaName { get; set; }

        public int CityId { get; set; }
        public string CityName { get; set; }

        public int ProvinceId { get; set; }
        public string ProvinceName { get; set; }

        public int CountryId { get; set; }
        public string CountryName { get; set; }

        public int TypeId { get; set; }

        public void SetDataToAddress(Address address)
        {
            address.Id = AddressId;
            address.AddressDesc = AddressDesc;
            address.AreaId = AreaId;
            address.CityId = CityId;
            address.CountryId = CountryId;
            address.Fax = Fax;
            address.PhoneNumber = PhoneNumber;
            address.ProvinceId = ProvinceId;
            address.State = ProvinceName;
            address.ZipCode = ZipCode;
            address.TypeId = TypeId;


        }
    }
}
